/*
 * Stopable.java
 *
 * Created on September 14, 2006, 9:10 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package smfbackup.run;

/**
 *
 * @author Iulian
 */
public class Manageable extends Thread {
    
    private boolean running;
    
    private void startup()
    {
        running = true;
    }
    
    public void run()
    {
        startup();
        
        doJob();
    }
    
    public void shutdown()
    {
        running = false;
    }
    
    public void doJob()
    {
        // does nothing, must be implemented
    }
}
